package designMode.builder;

/**
 * @Description
 * @Author 肖地洋
 * @Date 2022/8/13 15:59
 */
public class HighComputer implements Bulider{

    private Computer computer = new Computer();
    @Override
    public void buildCpu() {
        computer.setCpu("高配 CPU");
    }

    @Override
    public void buildMemory() {
        computer.setMemory("高配 memory");
    }

    @Override
    public void buildDisk() {
        computer.setDisk("高配 disk");

    }

    @Override
    public void buildMainboard() {
        computer.setMainboard("高配 mainboard");

    }

    @Override
    public void buildPower() {
        computer.setPower("高配 power");

    }

    @Override
    public Computer createCompoter() {
        return computer;
    }
}
